<a href="<?php echo $this->url(array('action' => 'index'), 'example_action'); ?>"><?php echo BaseZF::escape(_('Back to example index')); ?></a>

<br /><br />
<form method="post" action="<?php echo $this->url(); ?>">
    <fieldset>
    <legend><?php echo BaseZF::escape(_('Session example')); ?></legend>
    <table>
        <tr>
            <th><?php echo BaseZF::escape(_('session_key:')); ?></th>
            <td><?php echo $this->formText('session_key', $this->params['session_key']); ?></td>
            <td><?php echo (isset($this->paramsErrors['session_key']) ? '<em>' . BaseZF::escape(implode("\n", $this->paramsErrors['session_key'])) . '</em>' : '') ?></td>
        </tr>

        <tr>
            <th><?php echo BaseZF::escape(_('value:')); ?></th>
            <td><?php echo $this->formText('value', $this->params['value']); ?></td>
            <td><?php echo (isset($this->paramsErrors['value']) ? '<em>' . BaseZF::escape(implode("\n", $this->paramsErrors['value'])) . '</em>' : '') ?></td>
        </tr>

        <tr>
            <td colspan="">
            <?php echo $this->formSubmit('submit', _('Add')); ?>
            <?php echo $this->formReset('cancel', _('Cancel')); ?>
            </td>
        </tr>
    </table>
    </fieldset>
</form>
<br />
<fieldset>
    <legend><?php echo BaseZF::escape(_('Session value for "Global" namespace')); ?></legend>
    <pre>
    <?php  print_r($_SESSION);?>
    </pre>
</fieldset>

<ul>
    <li><a onclick="window.open(this.href); return false;" href="/doc/html/session_8php-source.html"><?php echo BaseZF::escape(_('See view source')); ?></a></li>
    <li><a onclick="window.open(this.href); return false;" href="/doc/html/classExampleController.html#28f7eae683efcce96f34661db6ed196e"><?php echo BaseZF::escape(_('See action source')); ?></a></li>
</ul>
